//
//  UILabel+Tool.swift
//  ltsp
//
//  Created by jyvyi_ios on 2022/9/27.
//

import Foundation

extension UILabel{
    
    convenience init(textColor:UIColor = UIColor.white,
                    font:UIFont,
                    textAlignment:NSTextAlignment = .left) {
        self.init()
        self.textColor = textColor
        self.font = font
        self.textAlignment = textAlignment
        self.backgroundColor = backgroundColor
    }
    
    convenience init(with numberOfLines:Int) {
        self.init()
        self.numberOfLines = numberOfLines
        self.sizeToFit()
    }
}
